Optimal. Leaf size=19 \[ \frac{\cos (c+d x)}{a d}+\frac{x}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0421265, antiderivative size = 19, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {2682, 8} \[ \frac{\cos (c+d x)}{a d}+\frac{x}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2682
Rule 8
Rubi steps
\begin{align*} \int \frac{\cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac{\cos (c+d x)}{a d}+\frac{\int 1 \, dx}{a}\\ &=\frac{x}{a}+\frac{\cos (c+d x)}{a d}\\ \end{align*}
Mathematica [B] time = 0.138564, size = 97, normalized size = 5.11 \[ -\frac{\left (2 \sqrt{1-\sin (c+d x)} \sin ^{-1}\left (\frac{\sqrt{1-\sin (c+d x)}}{\sqrt{2}}\right )+(\sin (c+d x)-1) \sqrt{\sin (c+d x)+1}\right ) \cos ^3(c+d x)}{a d (\sin (c+d x)-1)^2 (\sin (c+d x)+1)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.048, size = 43, normalized size = 2.3 \begin{align*} 2\,{\frac{1}{da \left ( 1+ \left ( \tan \left ( 1/2\,dx+c/2 \right ) \right ) ^{2} \right ) }}+2\,{\frac{\arctan \left ( \tan \left ( 1/2\,dx+c/2 \right ) \right ) }{da}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.59223, size = 70, normalized size = 3.68 \begin{align*} \frac{2 \,{\left (\frac{\arctan \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} + \frac{1}{a + \frac{a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}}\right )}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.59846, size = 38, normalized size = 2. \begin{align*} \frac{d x + \cos \left (d x + c\right )}{a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.26248, size = 119, normalized size = 6.26 \begin{align*} \begin{cases} \frac{d x \tan ^{2}{\left (\frac{c}{2} + \frac{d x}{2} \right )}}{a d \tan ^{2}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + a d} + \frac{d x}{a d \tan ^{2}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + a d} - \frac{\tan ^{2}{\left (\frac{c}{2} + \frac{d x}{2} \right )}}{a d \tan ^{2}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + a d} + \frac{1}{a d \tan ^{2}{\left (\frac{c}{2} + \frac{d x}{2} \right )} + a d} & \text{for}\: d \neq 0 \\\frac{x \cos ^{2}{\left (c \right )}}{a \sin{\left (c \right )} + a} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11696, size = 46, normalized size = 2.42 \begin{align*} \frac{\frac{d x + c}{a} + \frac{2}{{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right )} a}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]